#define _CRT_SECURE_NO_WARNINGS

#include "SList.h"

void test01() {
	LTNode* plist = NULL;
	LTInit(&plist);
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushFront(plist, 9);

	LTInsert(LTFind(plist, 2), 5);
	LTErase(LTFind(plist, 2));

	LTPrint(plist);
	LTDestroy(plist);
	plist = NULL;
}

int main() {
	test01();

	return 0;
}